<?php
global $_ShipMethods;
$_ShipMethods = array(
	'14' => array(
		'ID' => 14,
		'TitleCn' => '中国邮政挂号信',
		'TitleEn' => 'China Post Registered Mail',
		'Price' => '50', // ￥
		'PriceEn' => '8', // ＄
		'PaymentID' => '12',
		'ThumbUrl' => '/images/pay/cnpost.gif',
		'ThumbUrlDisabled' => '/images/pay/cnpost_disabled.gif',
	),
	'12' => array(
		'ID' => 12,
		'TitleCn' => '圆通快递',
		'TitleEn' => 'Yuangtong Express',
		'Price' => '10', // ￥
		'PriceEn' => '3', // ＄
		'PaymentID' => '11',
		'ThumbUrl' => '/images/pay/yt.gif',
		'ThumbUrlDisabled' => '/images/pay/yt_disabled.gif',
	),
	'13' => array(
		'ID' => 13,
		'TitleCn' => 'EMS',
		'TitleEn' => 'EMS',
		'Price' => '110', // ￥
		'PriceEn' => '18', // ＄
		'PaymentID' => '12',
		'ThumbUrl' => '/images/pay/ems.gif',
		'ThumbUrlDisabled' => '/images/pay/ems_disabled.gif',
	),
	'11' => array(
		'ID' => 11,
		'TitleCn' => '顺风速递',
		'TitleEn' => 'SF EXPRESS',
		'Price' => '20', // ￥
		'PriceEn' => '5', // ＄
		'PaymentID' => '11',
		'ThumbUrl' => '/images/pay/sf.gif',
		'ThumbUrlDisabled' => '/images/pay/sf_disabled.gif',
	),
);

function ship_method($nMethodID) {
	global $_ShipMethods;
	return ('en' == $_SESSION['LANG'] ? $_ShipMethods[$nMethodID]['TitleEn'] : $_ShipMethods[$nMethodID]['TitleCn']);
}
function ship_price_rmb($nMethodID) {
	global $_ShipMethods;
	return $_ShipMethods[$nMethodID]['Price'];
}
function ship_price_dollor($nMethodID) {
	global $_ShipMethods;
	return $_ShipMethods[$nMethodID]['PriceEn'];
}
function ship_price($nMethodID) {
	if ('dollor' == $_SESSION['MONEY']) { // 美元
		return ship_price_dollor($nMethodID);
	}
	else { // 人民币
		return ship_price_rmb($nMethodID);
	}
}
function ship_thumburl($nMethodID) {
	global $_ShipMethods;
	return $_ShipMethods[$nMethodID]['ThumbUrl'];
}


?>
